package demo2;

/**
 * @Author liangzai
 * @Description:
 */
public class Date {
    public int year;
    public int month;
    public int day;

    public void setDay(int year, int month, int day) {
        year = year;          //在这种情况下无法判断那个是当前对象
        month = month;
        day = day;
    }

    public static void printDate(){
        System.out.println(this.year+"年"+this.month+"月"+this.day+"日");
    }
}

